Performs a touch action in a location.
Use this statement with TouchMove and TouchUp to perform tap, swipe, and pinch zoom actions in scripts that test Windows 8 applications and to test applications that can interpret touch actions.
Note: This statement is not recorded and must be manually added to scripts.
Syntax
TouchDown(X, Y, ...)
Arguments
You can specify a maximum of 16 locations.
| Argument | Description |
|---|---|
| X | X coordinate to indicate the horizontal pixel location where the touch action is performed, relative to the screen or a window or control. |
| Y | Y coordinate to indicate the vertical pixel location where the touch action is performed, relative to the screen or a window or control. |
Supported objects
Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window
Example
Window("LeaveAComment").EditBox("editComment").TouchDown(100, 100)